Skip to content

Fix legacyMode/pingInterval issue #2386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 25, 2023

Conversation

benjie
Copy link
Contributor

@benjie benjie commented Jan 23, 2023

Description

Fixes #2383 - when pingInterval is used with a client in legacyMode an error was thrown (see #2383) - this PR aims to resolve the issue.


Checklist

  • Does npm test pass with this change (including linting)?

I do not have Docker installed under WSL, so am unable to run your test suite. I was hoping CI might take care of this. You don't seem to have a npm run format or similar command to apply autofixes to the formatting and I cannot run the test suite without Docker, so cannot confirm if linting passes.

  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

@benjie benjie force-pushed the fix-legacy-mode-ping-interval branch from e609b4e to fe674a6 Compare January 23, 2023 10:20
@leibale
Copy link
Contributor

leibale commented Jan 23, 2023

@benjie thanks again! I'm not sure why the tests are not passing, will check later.

@codecov-commenter
Copy link

codecov-commenter commented Jan 25, 2023

Codecov Report

Base: 95.85% // Head: 95.87% // Increases project coverage by +0.02% 🎉

Coverage data is based on head (59d20fc) compared to base (abf2b4b).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2386      +/-   ##
==========================================
+ Coverage   95.85%   95.87%   +0.02%     
==========================================
  Files         451      451              
  Lines        4247     4247              
  Branches      475      475              
==========================================
+ Hits         4071     4072       +1     
+ Misses        106      105       -1     
  Partials       70       70              
Impacted Files Coverage Δ
packages/client/lib/client/index.ts 92.40% <100.00%> (+0.40%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@leibale leibale merged commit 2287efd into redis:master Jan 25, 2023
@benjie benjie deleted the fix-legacy-mode-ping-interval branch January 25, 2023 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enabling legacyMode and pingInterval together leads to reproducible crash
3 participants